<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<?php
include "connection.php";

$product_name = $_REQUEST['product_name'];
$product_price = $_REQUEST['product_price'];
$product_week = $_REQUEST['product_week'];
$product_at = $_REQUEST['product_at'];
$product_month = $_REQUEST['product_month'];


$tableProduct = "product";

$sql = "insert into $tableProduct (
product_name,
price,
week,
month,
status,
at
) value (
'$product_name',
'$product_price',
'$product_week',
'$product_month',
'待审核',
'$product_at'
)";
$query = mysql_query($sql) or die ("添加失败，请返回！");


?>
<script type="text/javascript">
    alert("菜式已添加，请点击返回列表！");
    document.location = "../admin_productset.php";
</script>
</body>
</html>